<?php 
include 'templates/html_begin.php';
 include 'templates/menu.php';  
?>
<div class='container'>
        <?php
        if (isset($_POST['submit'])) {
            
        
        require_once ('..\models\News.php');
        $title = $_POST['title'];
        $abstract = $_POST['abstract'];
        $content = $_POST['content'];
        $status = $_POST['status'];
        $news = new News(NULL,$title,$abstract,$content,$status);
        $news->Save();
        } else {
            echo "Nem kapott a creatNews.php adatokat";
        }
        ?>
</div>
   
<?php
include "templates/html_end.php";
?>